﻿using System;
using System.Collections.Generic;
using System.Text;
using Ecreate.Data;
using Ecreate.Model;
namespace Ecreate.Business
{
    public class ServiceDBPage<T>
    {
        private IList<T> _List;
        public IList<T> List
        {
            get { return _List; }
        }
        private Ecreate.Model.DBPage _pager = new Ecreate.Model.DBPage();
        public Ecreate.Model.DBPage Pager
        {
          get { return _pager; }
        }
        public void Execute()
        {
            _List = FactoryDBEngine.SqlMapper().QueryForList<T>("p_pageview_customer", this.Pager);
        }
    }

    public class DBPageConst
    {
        public const int PageSize = 15;
    }
}
